package code.example.temp;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Temp {
    public static void main(String [] args){
        try {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");

            Date date = sdf.parse("2000-01-01 00:00:00");
            Long time = date.getTime();
            System.out.println(time);
        }catch (Exception e){
            e.printStackTrace();;
        }
    }
}
